import {memberList} from '../../../request/api'
const state={
    memberlist:[]
}
const getters={
   getMember(){
       return state.memberlist
   }
}
const mutations={
    REQ_LIST(state,payload){
      state.memberlist=payload
    }
}
const actions={
    getMemberActions({commit}){
       memberList().then(res=>{
        console.log(res, "管理员列表");
        if(res.code==200){
           commit('REQ_LIST',res.list)
        }
       })
    }
}
export default{
    state,
    getters,
    mutations,
    actions,
    namespaced: true

}